#include "methodcollection_t.h"
#include <assert.h>
#include "../libcbgl32memory/libcbgl32memory.h"
 
#ifdef __cplusplus
extern "C" {
#endif

methodCollection_t* loadMethodCollection()
{
    methodCollection_t* mC = (methodCollection_t*)cbgl_malloc(sizeof(methodCollection_t));
    assert(mC);
    mC->hDll = LoadLibraryA("opengl32.dll");

    if(mC->hDll){
          mC->glAccum = (CBGL_TYPE_1GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glAccum");
          mC->glAlphaFunc = (CBGL_TYPE_1GLCLAMPF_1GLENUM_VOID)GetProcAddress(mC->hDll, "glAlphaFunc");
          mC->glAreTexturesResident = (CBGL_TYPE_1GLBOOLEANP_1GLSIZEI_1GLUINTP_GLBOOLEAN)GetProcAddress(mC->hDll, "glAreTexturesResident");
          mC->glArrayElement = (CBGL_TYPE_1GLINT_VOID)GetProcAddress(mC->hDll, "glArrayElement");
          mC->glBegin = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glBegin");
          mC->glBindTexture = (CBGL_TYPE_1GLENUM_1GLUINT_VOID)GetProcAddress(mC->hDll, "glBindTexture");
          mC->glBitmap = (CBGL_TYPE_4GLFLOAT_2GLSIZEI_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glBitmap");
          mC->glBlendFunc = (CBGL_TYPE_2GLENUM_VOID)GetProcAddress(mC->hDll, "glBlendFunc");
          mC->glCallList = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glCallList");
          mC->glCallLists = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glCallLists");
          mC->glClear = (CBGL_TYPE_1GLBITFIELD_VOID)GetProcAddress(mC->hDll, "glClear");
          mC->glClearAccum = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glClearAccum");
          mC->glClearColor = (CBGL_TYPE_4GLCLAMPF_VOID)GetProcAddress(mC->hDll, "glClearColor");
          mC->glClearDepth = (CBGL_TYPE_1GLCLAMPD_VOID)GetProcAddress(mC->hDll, "glClearDepth");
          mC->glClearIndex = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glClearIndex");
          mC->glClearStencil = (CBGL_TYPE_1GLINT_VOID)GetProcAddress(mC->hDll, "glClearStencil");
          mC->glClipPlane = (CBGL_TYPE_1GLDOUBLEP_1GLENUM_VOID)GetProcAddress(mC->hDll, "glClipPlane");
          mC->glColor3b = (CBGL_TYPE_3GLBYTE_VOID)GetProcAddress(mC->hDll, "glColor3b");
          mC->glColor3bv = (CBGL_TYPE_1GLBYTEP_VOID)GetProcAddress(mC->hDll, "glColor3bv");
          mC->glColor3d = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glColor3d");
          mC->glColor3dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glColor3dv");
          mC->glColor3f = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glColor3f");
          mC->glColor3fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glColor3fv");
          mC->glColor3i = (CBGL_TYPE_3GLINT_VOID)GetProcAddress(mC->hDll, "glColor3i");
          mC->glColor3iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glColor3iv");
          mC->glColor3s = (CBGL_TYPE_3GLSHORT_VOID)GetProcAddress(mC->hDll, "glColor3s");
          mC->glColor3sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glColor3sv");
          mC->glColor3ub = (CBGL_TYPE_3GLUBYTE_VOID)GetProcAddress(mC->hDll, "glColor3ub");
          mC->glColor3ubv = (CBGL_TYPE_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glColor3ubv");
          mC->glColor3ui = (CBGL_TYPE_3GLUINT_VOID)GetProcAddress(mC->hDll, "glColor3ui");
          mC->glColor3uiv = (CBGL_TYPE_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glColor3uiv");
          mC->glColor3us = (CBGL_TYPE_3GLUSHORT_VOID)GetProcAddress(mC->hDll, "glColor3us");
          mC->glColor3usv = (CBGL_TYPE_1GLUSHORTP_VOID)GetProcAddress(mC->hDll, "glColor3usv");
          mC->glColor4b = (CBGL_TYPE_4GLBYTE_VOID)GetProcAddress(mC->hDll, "glColor4b");
          mC->glColor4bv = (CBGL_TYPE_1GLBYTEP_VOID)GetProcAddress(mC->hDll, "glColor4bv");
          mC->glColor4d = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glColor4d");
          mC->glColor4dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glColor4dv");
          mC->glColor4f = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glColor4f");
          mC->glColor4fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glColor4fv");
          mC->glColor4i = (CBGL_TYPE_4GLINT_VOID)GetProcAddress(mC->hDll, "glColor4i");
          mC->glColor4iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glColor4iv");
          mC->glColor4s = (CBGL_TYPE_4GLSHORT_VOID)GetProcAddress(mC->hDll, "glColor4s");
          mC->glColor4sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glColor4sv");
          mC->glColor4ub = (CBGL_TYPE_4GLUBYTE_VOID)GetProcAddress(mC->hDll, "glColor4ub");
          mC->glColor4ubv = (CBGL_TYPE_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glColor4ubv");
          mC->glColor4ui = (CBGL_TYPE_4GLUINT_VOID)GetProcAddress(mC->hDll, "glColor4ui");
          mC->glColor4uiv = (CBGL_TYPE_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glColor4uiv");
          mC->glColor4us = (CBGL_TYPE_4GLUSHORT_VOID)GetProcAddress(mC->hDll, "glColor4us");
          mC->glColor4usv = (CBGL_TYPE_1GLUSHORTP_VOID)GetProcAddress(mC->hDll, "glColor4usv");
          mC->glColorMask = (CBGL_TYPE_4GLBOOLEAN_VOID)GetProcAddress(mC->hDll, "glColorMask");
          mC->glColorMaterial = (CBGL_TYPE_2GLENUM_VOID)GetProcAddress(mC->hDll, "glColorMaterial");
          mC->glColorPointer = (CBGL_TYPE_1GLENUM_1GLINT_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glColorPointer");
          mC->glCopyPixels = (CBGL_TYPE_1GLENUM_2GLINT_2GLSIZEI_VOID)GetProcAddress(mC->hDll, "glCopyPixels");
          mC->glCopyTexImage1D = (CBGL_TYPE_2GLENUM_4GLINT_1GLSIZEI_VOID)GetProcAddress(mC->hDll, "glCopyTexImage1D");
          mC->glCopyTexImage2D = (CBGL_TYPE_2GLENUM_4GLINT_2GLSIZEI_VOID)GetProcAddress(mC->hDll, "glCopyTexImage2D");
          mC->glCopyTexSubImage1D = (CBGL_TYPE_1GLENUM_4GLINT_1GLSIZEI_VOID)GetProcAddress(mC->hDll, "glCopyTexSubImage1D");
          mC->glCopyTexSubImage2D = (CBGL_TYPE_1GLENUM_5GLINT_2GLSIZEI_VOID)GetProcAddress(mC->hDll, "glCopyTexSubImage2D");
          mC->glCullFace = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glCullFace");
          mC->glDeleteLists = (CBGL_TYPE_1GLSIZEI_1GLUINT_VOID)GetProcAddress(mC->hDll, "glDeleteLists");
          mC->glDeleteTextures = (CBGL_TYPE_1GLSIZEI_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glDeleteTextures");
          mC->glDepthFunc = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glDepthFunc");
          mC->glDepthMask = (CBGL_TYPE_1GLBOOLEAN_VOID)GetProcAddress(mC->hDll, "glDepthMask");
          mC->glDepthRange = (CBGL_TYPE_2GLCLAMPD_VOID)GetProcAddress(mC->hDll, "glDepthRange");
          mC->glDisable = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glDisable");
          mC->glDisableClientState = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glDisableClientState");
          mC->glDrawArrays = (CBGL_TYPE_1GLENUM_1GLINT_1GLSIZEI_VOID)GetProcAddress(mC->hDll, "glDrawArrays");
          mC->glDrawBuffer = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glDrawBuffer");
          mC->glDrawElements = (CBGL_TYPE_2GLENUM_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glDrawElements");
          mC->glDrawPixels = (CBGL_TYPE_2GLENUM_2GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glDrawPixels");
          mC->glEdgeFlag = (CBGL_TYPE_1GLBOOLEAN_VOID)GetProcAddress(mC->hDll, "glEdgeFlag");
          mC->glEdgeFlagPointer = (CBGL_TYPE_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glEdgeFlagPointer");
          mC->glEdgeFlagv = (CBGL_TYPE_1GLBOOLEANP_VOID)GetProcAddress(mC->hDll, "glEdgeFlagv");
          mC->glEnable = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glEnable");
          mC->glEnableClientState = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glEnableClientState");
          mC->glEnd = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glEnd");
          mC->glEndList = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glEndList");
          mC->glEvalCoord1d = (CBGL_TYPE_1GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glEvalCoord1d");
          mC->glEvalCoord1dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glEvalCoord1dv");
          mC->glEvalCoord1f = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glEvalCoord1f");
          mC->glEvalCoord1fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glEvalCoord1fv");
          mC->glEvalCoord2d = (CBGL_TYPE_2GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glEvalCoord2d");
          mC->glEvalCoord2dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glEvalCoord2dv");
          mC->glEvalCoord2f = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glEvalCoord2f");
          mC->glEvalCoord2fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glEvalCoord2fv");
          mC->glEvalMesh1 = (CBGL_TYPE_1GLENUM_2GLINT_VOID)GetProcAddress(mC->hDll, "glEvalMesh1");
          mC->glEvalMesh2 = (CBGL_TYPE_1GLENUM_4GLINT_VOID)GetProcAddress(mC->hDll, "glEvalMesh2");
          mC->glEvalPoint1 = (CBGL_TYPE_1GLINT_VOID)GetProcAddress(mC->hDll, "glEvalPoint1");
          mC->glEvalPoint2 = (CBGL_TYPE_2GLINT_VOID)GetProcAddress(mC->hDll, "glEvalPoint2");
          mC->glFeedbackBuffer = (CBGL_TYPE_1GLENUM_1GLFLOATP_1GLSIZEI_VOID)GetProcAddress(mC->hDll, "glFeedbackBuffer");
          mC->glFinish = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glFinish");
          mC->glFlush = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glFlush");
          mC->glFogf = (CBGL_TYPE_1GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glFogf");
          mC->glFogfv = (CBGL_TYPE_1GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glFogfv");
          mC->glFogi = (CBGL_TYPE_1GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glFogi");
          mC->glFogiv = (CBGL_TYPE_1GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glFogiv");
          mC->glFrontFace = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glFrontFace");
          mC->glFrustum = (CBGL_TYPE_6GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glFrustum");
          mC->glGenLists = (CBGL_TYPE_1GLSIZEI_GLUINT)GetProcAddress(mC->hDll, "glGenLists");
          mC->glGenTextures = (CBGL_TYPE_1GLSIZEI_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glGenTextures");
          mC->glGetBooleanv = (CBGL_TYPE_1GLBOOLEANP_1GLENUM_VOID)GetProcAddress(mC->hDll, "glGetBooleanv");
          mC->glGetClipPlane = (CBGL_TYPE_1GLDOUBLEP_1GLENUM_VOID)GetProcAddress(mC->hDll, "glGetClipPlane");
          mC->glGetDoublev = (CBGL_TYPE_1GLDOUBLEP_1GLENUM_VOID)GetProcAddress(mC->hDll, "glGetDoublev");
          mC->glGetError = (CBGL_TYPE_GLENUM)GetProcAddress(mC->hDll, "glGetError");
          mC->glGetFloatv = (CBGL_TYPE_1GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetFloatv");
          mC->glGetIntegerv = (CBGL_TYPE_1GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetIntegerv");
          mC->glGetLightfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetLightfv");
          mC->glGetLightiv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetLightiv");
          mC->glGetMapdv = (CBGL_TYPE_1GLDOUBLEP_2GLENUM_VOID)GetProcAddress(mC->hDll, "glGetMapdv");
          mC->glGetMapfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetMapfv");
          mC->glGetMapiv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetMapiv");
          mC->glGetMaterialfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetMaterialfv");
          mC->glGetMaterialiv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetMaterialiv");
          mC->glGetPixelMapfv = (CBGL_TYPE_1GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetPixelMapfv");
          mC->glGetPixelMapuiv = (CBGL_TYPE_1GLENUM_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glGetPixelMapuiv");
          mC->glGetPixelMapusv = (CBGL_TYPE_1GLENUM_1GLUSHORTP_VOID)GetProcAddress(mC->hDll, "glGetPixelMapusv");
          mC->glGetPointerv = (CBGL_TYPE_1GLENUM_1GLVOIDPP_VOID)GetProcAddress(mC->hDll, "glGetPointerv");
          mC->glGetPolygonStipple = (CBGL_TYPE_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glGetPolygonStipple");
          mC->glGetString = (CBGL_TYPE_1GLENUM_GLUBYTEP)GetProcAddress(mC->hDll, "glGetString");
          mC->glGetTexEnvfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetTexEnvfv");
          mC->glGetTexEnviv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetTexEnviv");
          mC->glGetTexGendv = (CBGL_TYPE_1GLDOUBLEP_2GLENUM_VOID)GetProcAddress(mC->hDll, "glGetTexGendv");
          mC->glGetTexGenfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetTexGenfv");
          mC->glGetTexGeniv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetTexGeniv");
          mC->glGetTexImage = (CBGL_TYPE_3GLENUM_1GLINT_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glGetTexImage");
          mC->glGetTexLevelParameterfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_1GLINT_VOID)GetProcAddress(mC->hDll, "glGetTexLevelParameterfv");
          mC->glGetTexLevelParameteriv = (CBGL_TYPE_2GLENUM_1GLINT_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetTexLevelParameteriv");
          mC->glGetTexParameterfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glGetTexParameterfv");
          mC->glGetTexParameteriv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glGetTexParameteriv");
          mC->glHint = (CBGL_TYPE_2GLENUM_VOID)GetProcAddress(mC->hDll, "glHint");
          mC->glIndexMask = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glIndexMask");
          mC->glIndexPointer = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glIndexPointer");
          mC->glIndexd = (CBGL_TYPE_1GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glIndexd");
          mC->glIndexdv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glIndexdv");
          mC->glIndexf = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glIndexf");
          mC->glIndexfv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glIndexfv");
          mC->glIndexi = (CBGL_TYPE_1GLINT_VOID)GetProcAddress(mC->hDll, "glIndexi");
          mC->glIndexiv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glIndexiv");
          mC->glIndexs = (CBGL_TYPE_1GLSHORT_VOID)GetProcAddress(mC->hDll, "glIndexs");
          mC->glIndexsv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glIndexsv");
          mC->glIndexub = (CBGL_TYPE_1GLUBYTE_VOID)GetProcAddress(mC->hDll, "glIndexub");
          mC->glIndexubv = (CBGL_TYPE_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glIndexubv");
          mC->glInitNames = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glInitNames");
          mC->glInterleavedArrays = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glInterleavedArrays");
          mC->glIsEnabled = (CBGL_TYPE_1GLENUM_GLBOOLEAN)GetProcAddress(mC->hDll, "glIsEnabled");
          mC->glIsList = (CBGL_TYPE_1GLUINT_GLBOOLEAN)GetProcAddress(mC->hDll, "glIsList");
          mC->glIsTexture = (CBGL_TYPE_1GLUINT_GLBOOLEAN)GetProcAddress(mC->hDll, "glIsTexture");
          mC->glLightModelf = (CBGL_TYPE_1GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glLightModelf");
          mC->glLightModelfv = (CBGL_TYPE_1GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glLightModelfv");
          mC->glLightModeli = (CBGL_TYPE_1GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glLightModeli");
          mC->glLightModeliv = (CBGL_TYPE_1GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glLightModeliv");
          mC->glLightf = (CBGL_TYPE_2GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glLightf");
          mC->glLightfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glLightfv");
          mC->glLighti = (CBGL_TYPE_2GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glLighti");
          mC->glLightiv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glLightiv");
          mC->glLineStipple = (CBGL_TYPE_1GLINT_1GLUSHORT_VOID)GetProcAddress(mC->hDll, "glLineStipple");
          mC->glLineWidth = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glLineWidth");
          mC->glListBase = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glListBase");
          mC->glLoadIdentity = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glLoadIdentity");
          mC->glLoadMatrixd = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glLoadMatrixd");
          mC->glLoadMatrixf = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glLoadMatrixf");
          mC->glLoadName = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glLoadName");
          mC->glLogicOp = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glLogicOp");
          mC->glMap1d = (CBGL_TYPE_2GLDOUBLE_1GLDOUBLEP_1GLENUM_2GLINT_VOID)GetProcAddress(mC->hDll, "glMap1d");
          mC->glMap1f = (CBGL_TYPE_1GLENUM_2GLFLOAT_1GLFLOATP_2GLINT_VOID)GetProcAddress(mC->hDll, "glMap1f");
          mC->glMap2d = (CBGL_TYPE_4GLDOUBLE_1GLDOUBLEP_1GLENUM_4GLINT_VOID)GetProcAddress(mC->hDll, "glMap2d");
          mC->glMap2f = (CBGL_TYPE_1GLENUM_4GLFLOAT_1GLFLOATP_4GLINT_VOID)GetProcAddress(mC->hDll, "glMap2f");
          mC->glMapGrid1d = (CBGL_TYPE_2GLDOUBLE_1GLINT_VOID)GetProcAddress(mC->hDll, "glMapGrid1d");
          mC->glMapGrid1f = (CBGL_TYPE_2GLFLOAT_1GLINT_VOID)GetProcAddress(mC->hDll, "glMapGrid1f");
          mC->glMapGrid2d = (CBGL_TYPE_4GLDOUBLE_2GLINT_VOID)GetProcAddress(mC->hDll, "glMapGrid2d");
          mC->glMapGrid2f = (CBGL_TYPE_4GLFLOAT_2GLINT_VOID)GetProcAddress(mC->hDll, "glMapGrid2f");
          mC->glMaterialf = (CBGL_TYPE_2GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glMaterialf");
          mC->glMaterialfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glMaterialfv");
          mC->glMateriali = (CBGL_TYPE_2GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glMateriali");
          mC->glMaterialiv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glMaterialiv");
          mC->glMatrixMode = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glMatrixMode");
          mC->glMultMatrixd = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glMultMatrixd");
          mC->glMultMatrixf = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glMultMatrixf");
          mC->glNewList = (CBGL_TYPE_1GLENUM_1GLUINT_VOID)GetProcAddress(mC->hDll, "glNewList");
          mC->glNormal3b = (CBGL_TYPE_3GLBYTE_VOID)GetProcAddress(mC->hDll, "glNormal3b");
          mC->glNormal3bv = (CBGL_TYPE_1GLBYTEP_VOID)GetProcAddress(mC->hDll, "glNormal3bv");
          mC->glNormal3d = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glNormal3d");
          mC->glNormal3dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glNormal3dv");
          mC->glNormal3f = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glNormal3f");
          mC->glNormal3fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glNormal3fv");
          mC->glNormal3i = (CBGL_TYPE_3GLINT_VOID)GetProcAddress(mC->hDll, "glNormal3i");
          mC->glNormal3iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glNormal3iv");
          mC->glNormal3s = (CBGL_TYPE_3GLSHORT_VOID)GetProcAddress(mC->hDll, "glNormal3s");
          mC->glNormal3sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glNormal3sv");
          mC->glNormalPointer = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glNormalPointer");
          mC->glOrtho = (CBGL_TYPE_6GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glOrtho");
          mC->glPassThrough = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPassThrough");
          mC->glPixelMapfv = (CBGL_TYPE_1GLENUM_1GLFLOATP_1GLSIZEI_VOID)GetProcAddress(mC->hDll, "glPixelMapfv");
          mC->glPixelMapuiv = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glPixelMapuiv");
          mC->glPixelMapusv = (CBGL_TYPE_1GLENUM_1GLSIZEI_1GLUSHORTP_VOID)GetProcAddress(mC->hDll, "glPixelMapusv");
          mC->glPixelStoref = (CBGL_TYPE_1GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPixelStoref");
          mC->glPixelStorei = (CBGL_TYPE_1GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glPixelStorei");
          mC->glPixelTransferf = (CBGL_TYPE_1GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPixelTransferf");
          mC->glPixelTransferi = (CBGL_TYPE_1GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glPixelTransferi");
          mC->glPixelZoom = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPixelZoom");
          mC->glPointSize = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPointSize");
          mC->glPolygonMode = (CBGL_TYPE_2GLENUM_VOID)GetProcAddress(mC->hDll, "glPolygonMode");
          mC->glPolygonOffset = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glPolygonOffset");
          mC->glPolygonStipple = (CBGL_TYPE_1GLUBYTEP_VOID)GetProcAddress(mC->hDll, "glPolygonStipple");
          mC->glPopAttrib = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glPopAttrib");
          mC->glPopClientAttrib = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glPopClientAttrib");
          mC->glPopMatrix = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glPopMatrix");
          mC->glPopName = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glPopName");
          mC->glPrioritizeTextures = (CBGL_TYPE_1GLCLAMPFP_1GLSIZEI_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glPrioritizeTextures");
          mC->glPushAttrib = (CBGL_TYPE_1GLBITFIELD_VOID)GetProcAddress(mC->hDll, "glPushAttrib");
          mC->glPushClientAttrib = (CBGL_TYPE_1GLBITFIELD_VOID)GetProcAddress(mC->hDll, "glPushClientAttrib");
          mC->glPushMatrix = (CBGL_TYPE_VOID)GetProcAddress(mC->hDll, "glPushMatrix");
          mC->glPushName = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glPushName");
          mC->glRasterPos2d = (CBGL_TYPE_2GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glRasterPos2d");
          mC->glRasterPos2dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glRasterPos2dv");
          mC->glRasterPos2f = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glRasterPos2f");
          mC->glRasterPos2fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glRasterPos2fv");
          mC->glRasterPos2i = (CBGL_TYPE_2GLINT_VOID)GetProcAddress(mC->hDll, "glRasterPos2i");
          mC->glRasterPos2iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glRasterPos2iv");
          mC->glRasterPos2s = (CBGL_TYPE_2GLSHORT_VOID)GetProcAddress(mC->hDll, "glRasterPos2s");
          mC->glRasterPos2sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glRasterPos2sv");
          mC->glRasterPos3d = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glRasterPos3d");
          mC->glRasterPos3dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glRasterPos3dv");
          mC->glRasterPos3f = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glRasterPos3f");
          mC->glRasterPos3fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glRasterPos3fv");
          mC->glRasterPos3i = (CBGL_TYPE_3GLINT_VOID)GetProcAddress(mC->hDll, "glRasterPos3i");
          mC->glRasterPos3iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glRasterPos3iv");
          mC->glRasterPos3s = (CBGL_TYPE_3GLSHORT_VOID)GetProcAddress(mC->hDll, "glRasterPos3s");
          mC->glRasterPos3sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glRasterPos3sv");
          mC->glRasterPos4d = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glRasterPos4d");
          mC->glRasterPos4dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glRasterPos4dv");
          mC->glRasterPos4f = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glRasterPos4f");
          mC->glRasterPos4fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glRasterPos4fv");
          mC->glRasterPos4i = (CBGL_TYPE_4GLINT_VOID)GetProcAddress(mC->hDll, "glRasterPos4i");
          mC->glRasterPos4iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glRasterPos4iv");
          mC->glRasterPos4s = (CBGL_TYPE_4GLSHORT_VOID)GetProcAddress(mC->hDll, "glRasterPos4s");
          mC->glRasterPos4sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glRasterPos4sv");
          mC->glReadBuffer = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glReadBuffer");
          mC->glReadPixels = (CBGL_TYPE_2GLENUM_2GLINT_2GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glReadPixels");
          mC->glRectd = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glRectd");
          mC->glRectdv = (CBGL_TYPE_2GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glRectdv");
          mC->glRectf = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glRectf");
          mC->glRectfv = (CBGL_TYPE_2GLFLOATP_VOID)GetProcAddress(mC->hDll, "glRectfv");
          mC->glRecti = (CBGL_TYPE_4GLINT_VOID)GetProcAddress(mC->hDll, "glRecti");
          mC->glRectiv = (CBGL_TYPE_2GLINTP_VOID)GetProcAddress(mC->hDll, "glRectiv");
          mC->glRects = (CBGL_TYPE_4GLSHORT_VOID)GetProcAddress(mC->hDll, "glRects");
          mC->glRectsv = (CBGL_TYPE_2GLSHORTP_VOID)GetProcAddress(mC->hDll, "glRectsv");
          mC->glRenderMode = (CBGL_TYPE_1GLENUM_GLINT)GetProcAddress(mC->hDll, "glRenderMode");
          mC->glRotated = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glRotated");
          mC->glRotatef = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glRotatef");
          mC->glScaled = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glScaled");
          mC->glScalef = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glScalef");
          mC->glScissor = (CBGL_TYPE_2GLINT_2GLSIZEI_VOID)GetProcAddress(mC->hDll, "glScissor");
          mC->glSelectBuffer = (CBGL_TYPE_1GLSIZEI_1GLUINTP_VOID)GetProcAddress(mC->hDll, "glSelectBuffer");
          mC->glShadeModel = (CBGL_TYPE_1GLENUM_VOID)GetProcAddress(mC->hDll, "glShadeModel");
          mC->glStencilFunc = (CBGL_TYPE_1GLENUM_1GLINT_1GLUINT_VOID)GetProcAddress(mC->hDll, "glStencilFunc");
          mC->glStencilMask = (CBGL_TYPE_1GLUINT_VOID)GetProcAddress(mC->hDll, "glStencilMask");
          mC->glStencilOp = (CBGL_TYPE_3GLENUM_VOID)GetProcAddress(mC->hDll, "glStencilOp");
          mC->glTexCoord1d = (CBGL_TYPE_1GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glTexCoord1d");
          mC->glTexCoord1dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glTexCoord1dv");
          mC->glTexCoord1f = (CBGL_TYPE_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexCoord1f");
          mC->glTexCoord1fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexCoord1fv");
          mC->glTexCoord1i = (CBGL_TYPE_1GLINT_VOID)GetProcAddress(mC->hDll, "glTexCoord1i");
          mC->glTexCoord1iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexCoord1iv");
          mC->glTexCoord1s = (CBGL_TYPE_1GLSHORT_VOID)GetProcAddress(mC->hDll, "glTexCoord1s");
          mC->glTexCoord1sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glTexCoord1sv");
          mC->glTexCoord2d = (CBGL_TYPE_2GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glTexCoord2d");
          mC->glTexCoord2dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glTexCoord2dv");
          mC->glTexCoord2f = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexCoord2f");
          mC->glTexCoord2fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexCoord2fv");
          mC->glTexCoord2i = (CBGL_TYPE_2GLINT_VOID)GetProcAddress(mC->hDll, "glTexCoord2i");
          mC->glTexCoord2iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexCoord2iv");
          mC->glTexCoord2s = (CBGL_TYPE_2GLSHORT_VOID)GetProcAddress(mC->hDll, "glTexCoord2s");
          mC->glTexCoord2sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glTexCoord2sv");
          mC->glTexCoord3d = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glTexCoord3d");
          mC->glTexCoord3dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glTexCoord3dv");
          mC->glTexCoord3f = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexCoord3f");
          mC->glTexCoord3fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexCoord3fv");
          mC->glTexCoord3i = (CBGL_TYPE_3GLINT_VOID)GetProcAddress(mC->hDll, "glTexCoord3i");
          mC->glTexCoord3iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexCoord3iv");
          mC->glTexCoord3s = (CBGL_TYPE_3GLSHORT_VOID)GetProcAddress(mC->hDll, "glTexCoord3s");
          mC->glTexCoord3sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glTexCoord3sv");
          mC->glTexCoord4d = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glTexCoord4d");
          mC->glTexCoord4dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glTexCoord4dv");
          mC->glTexCoord4f = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexCoord4f");
          mC->glTexCoord4fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexCoord4fv");
          mC->glTexCoord4i = (CBGL_TYPE_4GLINT_VOID)GetProcAddress(mC->hDll, "glTexCoord4i");
          mC->glTexCoord4iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexCoord4iv");
          mC->glTexCoord4s = (CBGL_TYPE_4GLSHORT_VOID)GetProcAddress(mC->hDll, "glTexCoord4s");
          mC->glTexCoord4sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glTexCoord4sv");
          mC->glTexCoordPointer = (CBGL_TYPE_1GLENUM_1GLINT_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glTexCoordPointer");
          mC->glTexEnvf = (CBGL_TYPE_2GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexEnvf");
          mC->glTexEnvfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexEnvfv");
          mC->glTexEnvi = (CBGL_TYPE_2GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glTexEnvi");
          mC->glTexEnviv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexEnviv");
          mC->glTexGend = (CBGL_TYPE_1GLDOUBLE_2GLENUM_VOID)GetProcAddress(mC->hDll, "glTexGend");
          mC->glTexGendv = (CBGL_TYPE_1GLDOUBLEP_2GLENUM_VOID)GetProcAddress(mC->hDll, "glTexGendv");
          mC->glTexGenf = (CBGL_TYPE_2GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexGenf");
          mC->glTexGenfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexGenfv");
          mC->glTexGeni = (CBGL_TYPE_2GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glTexGeni");
          mC->glTexGeniv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexGeniv");
          mC->glTexImage1D = (CBGL_TYPE_3GLENUM_3GLINT_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glTexImage1D");
          mC->glTexImage2D = (CBGL_TYPE_3GLENUM_3GLINT_2GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glTexImage2D");
          mC->glTexParameterf = (CBGL_TYPE_2GLENUM_1GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTexParameterf");
          mC->glTexParameterfv = (CBGL_TYPE_2GLENUM_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glTexParameterfv");
          mC->glTexParameteri = (CBGL_TYPE_2GLENUM_1GLINT_VOID)GetProcAddress(mC->hDll, "glTexParameteri");
          mC->glTexParameteriv = (CBGL_TYPE_2GLENUM_1GLINTP_VOID)GetProcAddress(mC->hDll, "glTexParameteriv");
          mC->glTexSubImage1D = (CBGL_TYPE_3GLENUM_2GLINT_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glTexSubImage1D");
          mC->glTexSubImage2D = (CBGL_TYPE_3GLENUM_3GLINT_2GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glTexSubImage2D");
          mC->glTranslated = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glTranslated");
          mC->glTranslatef = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glTranslatef");
          mC->glVertex2d = (CBGL_TYPE_2GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glVertex2d");
          mC->glVertex2dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glVertex2dv");
          mC->glVertex2f = (CBGL_TYPE_2GLFLOAT_VOID)GetProcAddress(mC->hDll, "glVertex2f");
          mC->glVertex2fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glVertex2fv");
          mC->glVertex2i = (CBGL_TYPE_2GLINT_VOID)GetProcAddress(mC->hDll, "glVertex2i");
          mC->glVertex2iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glVertex2iv");
          mC->glVertex2s = (CBGL_TYPE_2GLSHORT_VOID)GetProcAddress(mC->hDll, "glVertex2s");
          mC->glVertex2sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glVertex2sv");
          mC->glVertex3d = (CBGL_TYPE_3GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glVertex3d");
          mC->glVertex3dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glVertex3dv");
          mC->glVertex3f = (CBGL_TYPE_3GLFLOAT_VOID)GetProcAddress(mC->hDll, "glVertex3f");
          mC->glVertex3fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glVertex3fv");
          mC->glVertex3i = (CBGL_TYPE_3GLINT_VOID)GetProcAddress(mC->hDll, "glVertex3i");
          mC->glVertex3iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glVertex3iv");
          mC->glVertex3s = (CBGL_TYPE_3GLSHORT_VOID)GetProcAddress(mC->hDll, "glVertex3s");
          mC->glVertex3sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glVertex3sv");
          mC->glVertex4d = (CBGL_TYPE_4GLDOUBLE_VOID)GetProcAddress(mC->hDll, "glVertex4d");
          mC->glVertex4dv = (CBGL_TYPE_1GLDOUBLEP_VOID)GetProcAddress(mC->hDll, "glVertex4dv");
          mC->glVertex4f = (CBGL_TYPE_4GLFLOAT_VOID)GetProcAddress(mC->hDll, "glVertex4f");
          mC->glVertex4fv = (CBGL_TYPE_1GLFLOATP_VOID)GetProcAddress(mC->hDll, "glVertex4fv");
          mC->glVertex4i = (CBGL_TYPE_4GLINT_VOID)GetProcAddress(mC->hDll, "glVertex4i");
          mC->glVertex4iv = (CBGL_TYPE_1GLINTP_VOID)GetProcAddress(mC->hDll, "glVertex4iv");
          mC->glVertex4s = (CBGL_TYPE_4GLSHORT_VOID)GetProcAddress(mC->hDll, "glVertex4s");
          mC->glVertex4sv = (CBGL_TYPE_1GLSHORTP_VOID)GetProcAddress(mC->hDll, "glVertex4sv");
          mC->glVertexPointer = (CBGL_TYPE_1GLENUM_1GLINT_1GLSIZEI_1GLVOIDP_VOID)GetProcAddress(mC->hDll, "glVertexPointer");
          mC->glViewport = (CBGL_TYPE_2GLINT_2GLSIZEI_VOID)GetProcAddress(mC->hDll, "glViewport");
		return mC;
	}else{
		cbgl_free(mC);
		return 0;
	}}

void unloadMethodCollection(methodCollection_t* mC)
{
    FreeLibrary(mC->hDll);
    cbgl_free(mC);
}

#ifdef __cplusplus
}
#endif